import { AppRouteRecordRaw } from '@/types/routes';

const accountRoutes: AppRouteRecordRaw[] = [
	{
		path: 'restful',
		name: 'restful-index',
		children: [
			{
				path: 'list',
				name: 'restful-list',
				component: () => import('@/views/restful/list.vue'),
			},
			{
				path: 'create',
				name: 'restful-create',
				component: () => import('@/views/restful/book.vue'),
			},
			{
				path: 'detail/:id',
				name: 'restful-detail',
				component: () => import('@/views/restful/detail.vue'),
			},
		],
	},
	{
		path: 'graphql',
		name: 'graphql-index',
		children: [
			{
				path: 'list',
				name: 'graphql-list',
				component: () => import('@/views/graphql/list.vue'),
			},
			{
				path: 'create',
				name: 'graphql-create',
				component: () => import('@/views/graphql/book.vue'),
			},
			{
				path: 'detail/:id',
				name: 'graphql-detail',
				component: () => import('@/views/graphql/detail.vue'),
			},
		],
	},
];
export default accountRoutes;
